import java.io.Serializable;

public class Student implements Serializable {
    private static final long serialVersionUID = 1L; // 序列化版本号
    private String id;       // 学号
    private String name;     // 姓名
    private String className;// 班级

    public Student(String id, String name, String className) {
        this.id = id;
        this.name = name;
        this.className = className;
    }

    // Getter & Setter
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getClassName() { return className; }
    public void setClassName(String className) { this.className = className; }

    @Override
    public String toString() {
        return "Student{id='" + id + "', name='" + name + "', className='" + className + "'}";
    }
}